import request from '@/utils/request'

/**
 * 批量视频评论
 * @param data = {
 *   userIds:userIds,
 *   videoIds:videoIds
 * }
 */
export function videoComment(data) {
  return request({
    url: '/sys/navyTask/videoComment',
    method: 'post',
    data: data
  })
}

/**
 * 批量店铺下单
 * @param data = {
 *   navyIds:navyIds,
 *   shopIds:shopIds,
 *   shopGoodsIds:shopGoodsIds,
 *   amount:amount,
 * }
 */
export function shopOrder(data) {
  return request({
    url: '/sys/navyTask/shopOrder',
    method: 'post',
    data: data
  })
}

/**
 * 批量直播下单
 * @param data = {
 *   navyIds:navyIds,
 *   liveIds:liveIds,
 *   amount:amount,
 * }
 */
export function livesOrder(data) {
  return request({
    url: '/sys/navyTask/livesOrder',
    method: 'post',
    data: data
  })
}

/**
 * 批量点赞直播
 * @param data = {
 *   navyIds:navyIds,
 *   livesIds:livesIds,
 * }
 */
export function livesGiveLike(data) {
  return request({
    url: '/sys/navyTask/livesGiveLike',
    method: 'post',
    data: data
  })
}

/**
 * 批量收藏店铺
 * @param data = {
 *   shopIds:shopIds,
 *   userIds:userIds,
 * }
 */
export function shopCollect(data) {
  return request({
    url: '/sys/navyTask/shopCollect',
    method: 'post',
    data: data
  })
}

// 查询店铺列表
export function shopList(data) {
  return request({
    url: '/web/shop/list',
    method: 'post',
    data: data
  })
}
// 查询主播列表
export function anchorGetAll(data) {
  return request({
    url: '/sys/anchor/getAll',
    method: 'post',
    data: data
  })
}
// 查询直播间
export function getRoom(data) {
  return request({
    url: '/sys/livesRoom/getAllRoom',
    method: 'post',
    data: data
  })
}
// 分页查询短视频信息
export function videoPage(data) {
  return request({
    url: '/sys/short/video/page',
    method: 'post',
    data: data
  })
}

//直播礼物
export function livesGift(data) {
  return request({
    url: '/sys/navyTask/livesGift',
    method: 'post',
    data: data
  })
}

// 直播弹幕
export function livesBulletScreen(data) {
  return request({
    url: '/sys/navyTask/livesBulletScreen',
    method: 'post',
    data: data
  })
}

// 根据店铺查询商品信息
export function shopGoodsInfo(data) {
  return request({
    url: '/sys/shopGoodsInfo/list',
    method: 'post',
    data: data
  })
}

// 批量商品评论
export function shopComment(data) {
  return request({
    url: '/sys/navyTask/shopComment',
    method: 'post',
    data: data
  })
}

